package com.axjy.service;

import com.axjy.controller.dto.UserDto;
import com.axjy.pojo.User;
import com.axjy.util.Pager;

import java.util.List;

/**
 * Created by asus on 2017/9/25.
 */
public interface UserService {

    Pager searchPager(Integer offset, Integer limit, String columnName, String columnValue);

    void grant(Integer id,Integer roleId);

    User login(String name, String pwd);

    List<User> searchByRole(Integer rid);

    Pager searchByDyna(Integer offset,Integer limit,UserDto dto);
}
